<#--
  	Description: 7996辅助表单条记录新增页面
  	Author：Wangxuegang
    Date：2013-04-25
 -->
 <#include "../template/template_editPage.ftl">
 <@edit title="7996产品管理">
 <body class="input">
 	<script type="text/javascript">
 		$().ready(function () {
        var $validateErrorContainer = $("#validateErrorContainer");
        var $validateErrorLabelContainer = $("#validateErrorContainer ul");
        var $validateForm = $("#inputForm");
        var $tab = $("#tab");
 	
 		 // Tab效果
        $tab.tabs(".tabContent", {
            tabs:"input"
        });
 		// 表单验证
        $validateForm.validate({
            errorContainer:$validateErrorContainer,
            errorLabelContainer:$validateErrorLabelContainer,
            wrapper:"li",
            errorClass:"validateError",
            ignoreTitle:true,
 			rules:{
                "snnsAuxiliaryInfo.product_id":{
                    required:true
                }
            },
 			 messages:{
                "snnsAuxiliaryInfo.product_id":{
                    required:"产品编号不能为空！"
                }
            },
 			submitHandler:function (form) {
                form.submit();
            }
	        });
 			<#if actionErrors?? && (actionErrors?size > 0)>
	            $.dialog({type:"warn", content:"<#list errorMessages as list>${list}<br></#list>",
	                modal:true, autoCloseTime:3000});
	        </#if>
 	</script>
 	
 	<div class="body">
 		<div class="inputBar">
      		  <h1><span class="icon">&nbsp;</span>
      		            添加7996产品信息
      		  </h1>
    	</div>
 		<div style="display: none;" id="validateErrorContainer" class="validateErrorContainer">
	        <div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
	        <ul></ul>
    	</div>
 		<form id="inputForm" class="validate"
          action="${web_base}/game/snns_auxiliary!save.htm
          method="post">
 			<ul class="tab">
	            <li>
	                <input type="button" value="基本信息" hidefocus="true"/>
	            </li>
       	    </ul>
 			<table class="inputTable tabContent">
 				<tr>
	                <th>
	                                                                                       产品编码:
	                </th>
	                <td>
	                    <input type="text" name="snnsAuxiliaryInfo.product_id" class="formText {required: true}" value=""/>
	                    <label class="requireField">*</label>
	                </td>
                </tr>
                <tr>
	                <th>
	                                                                                      充值区域:
	                </th>
	                <td>
	                    <input type="text" name="snnsAuxiliaryInfo.area" class="formText {required: true}" value=""/>
	                    <label class="requireField">*</label>
	                </td>
                </tr>
                <tr>
	                <th>
	                                                                                      充值服务器:
	                </th>
	                <td>
	                    <input type="text" name="snnsAuxiliaryInfo.server" class="formText {required: true}" value=""/>
	                    <label class="requireField">*</label>
	                </td>
                </tr>
                <tr>
	                <th>
	                                                                                      帐号类型:
	                </th>
	                <td>
	                    <input type="text" name="snnsAuxiliaryInfo.account_type" class="formText {required: true}" value=""/>
	                    <label class="requireField">*</label>
	                </td>
                </tr>
                <tr>
	                <th>
	                                                                                     计费类型:
	                </th>
	                <td>
	                    <input type="text" name="snnsAuxiliaryInfo.charge_type" class="formText {required: true}" value=""/>
	                    <label class="requireField">*</label>
	                </td>
                </tr>
 			</table>
 			<div class="buttonArea">
            <input type="submit" id="submitId" class="formButton"  value="添  加" 
                  hidefocus="true"/>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回"
                   hidefocus="true"/>
         </div>
 		</form>
 	</div>
  </body>
 </@edit>
 
